Speed up gtk_text_buffer_insert_markup
authorMatthias Clasen <mclasen@redhat.com>
Thu, 13 Aug 2020 02:51:59 +0000 (22:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 13 Aug 2020 02:51:59 +0000 (22:51 -0400)
commit88dcd2597aa61e01361eeab89abf517a00753b3c
tree809992e0ef2cfcc039ec6ff3d4ea2d3671be790d
parent7226878916d30f12c25ca4dcd65bff007ba7b219
Speed up gtk_text_buffer_insert_markup

Instead of blindly creating new tags for every attribute,
reuse existing tags. For the syntax highlighting of the
ui file of the cursors demo, this gets us down from
20.000 tags to 6.
gtk/gtktextbuffer.c